.class Lcom/netease/newsreader/model/City$1;
.super Ljava/lang/Object;
.source "City.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/model/City;->updateSelectCount(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field private final synthetic val$city:Ljava/lang/String;

.field private final synthetic val$count:I

.field private final synthetic val$db:Landroid/database/sqlite/SQLiteDatabase;

.field private final synthetic val$province:Ljava/lang/String;


# direct methods
.method constructor <init>(ILandroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1
    iput p1, p0, Lcom/netease/newsreader/model/City$1;->val$count:I

    iput-object p2, p0, Lcom/netease/newsreader/model/City$1;->val$db:Landroid/database/sqlite/SQLiteDatabase;

    iput-object p3, p0, Lcom/netease/newsreader/model/City$1;->val$province:Ljava/lang/String;

    iput-object p4, p0, Lcom/netease/newsreader/model/City$1;->val$city:Ljava/lang/String;

    .line 121
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .prologue
    .line 124
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    .line 125
    .local v0, values:Landroid/content/ContentValues;
    const-string v1, "city_select_count"

    iget v2, p0, Lcom/netease/newsreader/model/City$1;->val$count:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 126
    iget-object v1, p0, Lcom/netease/newsreader/model/City$1;->val$db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "city_list"

    .line 127
    const-string v3, " city_province=? AND city_name=? "

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/String;

    const/4 v5, 0x0

    .line 128
    iget-object v6, p0, Lcom/netease/newsreader/model/City$1;->val$province:Ljava/lang/String;

    aput-object v6, v4, v5

    const/4 v5, 0x1

    iget-object v6, p0, Lcom/netease/newsreader/model/City$1;->val$city:Ljava/lang/String;

    aput-object v6, v4, v5

    .line 126
    invoke-virtual {v1, v2, v0, v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 131
    return-void
.end method
